import unittest
import os.path
from documentcreator import *
 
class Documenttest(unittest.TestCase):

	def testcrearTxt(self):
		c=Document("Test")
		c.txtCreate()
		self.assertTrue(os.path.isfile("Test.txt")==True)
	
	
	def testcrearHtml(self):
		c=Document("Test")
		c.htmlCreate()
		self.assertTrue(os.path.isfile("Test.html")==True)
		
	
	def testcrearXml(self):
		c=Document("Test")
		c.xmlCreate()
		self.assertTrue(os.path.isfile("Test.xml")==True)
 
if __name__=="__main__":
    unittest.main()

